<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class CollectionArticle extends Model
{
    protected $table = 'collection_articles';
    protected $fillable = ['c_id', 'a_id', 'created_at', 'updated_at'];


    public function article()
    {
    	return $this->hasOne(Article::class, 'id', 'a_id');
    }
}
